File tree 1 file changed +2
-2
lines changed 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -450,6 +450,7 @@ static cmd_params parse_cmd_params(int argc, char ** argv) {
450
450
invalid_param = true ;
451
451
break ;
452
452
}
453
+ FLAG_gpu = LLAMAFILE_GPU_AUTO;
453
454
auto p = split<int >(argv[i], split_delim);
454
455
params.n_gpu_layers .insert (params.n_gpu_layers .end (), p.begin (), p.end ());
455
456
} else if (arg == " -sm" || arg == " --split-mode" ) {
@@ -1357,8 +1358,6 @@ __attribute__((__constructor__(101))) static void init(void) {
1357
1358
}
1358
1359
1359
1360
int main (int argc, char ** argv) {
1360
- FLAG_gpu = LLAMAFILE_GPU_DISABLE; // [jart]
1361
-
1362
1361
ShowCrashReports ();
1363
1362
1364
1363
// try to set locale for unicode characters in markdown
@@ -1382,6 +1381,7 @@ int main(int argc, char ** argv) {
1382
1381
#endif
1383
1382
1384
1383
cmd_params params = parse_cmd_params (argc, argv);
1384
+ FLAGS_READY = true ;
1385
1385
1386
1386
// initialize llama.cpp
1387
1387
if (!params.verbose ) {
You can’t perform that action at this time.
0 commit comments